﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;

namespace scom_a3_web.james_svc
{
    public partial class WebForm5 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void b_test_Click(object sender, EventArgs e)
        {
            ServiceReference1.Tokenizer_JamesClient tjc = new ServiceReference1.Tokenizer_JamesClient();
            string[] delims = tb_tokens.Text.Split('|');
            string[] tokens = tjc.Tokenize(tb_strInput.Text, delims, true, true, true, true);
            StringBuilder sb = new StringBuilder();
            
            foreach (string s in tokens)
            {
                sb.Append(s + "<br />");
            }
            l_output.Text = sb.ToString();

        }
    }
}